home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / IIS5_01.CAB / IIS_SimpleTransaction_JScript.asp < prev    next >
Encoding:
Text File  |  1998-05-29  |  1.7 KB  |  59 lines

  1. <%@ TRANSACTION = Required LANGUAGE = "JScript" %>
  2.  
  3. <!*************************
  4. This sample is provided for educational purposes only. It is not intended to be 
  5. used in a production environment, has not been tested in a production environment, 
  6. and Microsoft will not provide technical support for it. 
  7. *************************>
  8.  
  9. <HTML>
  10.     <HEAD>
  11.         <TITLE>Simple Transactional Web Page</TITLE>
  12.     </HEAD>
  13.  
  14.     <BODY BGCOLOR="White" TOPMARGIN="10" LEFTMARGIN="10">
  15.  
  16.  
  17.         <!-- DISPLAY HEADER -->
  18.  
  19.         <FONT SIZE="4" FACE="ARIAL, HELVETICA">
  20.         <B>Simple Transactional Web Page</B></FONT><BR>
  21.       
  22.         <HR SIZE="1" COLOR="#000000">
  23.  
  24.  
  25.         <!-- Brief Description blurb.  -->
  26.  
  27.         This is a simple example demonstrating the basic
  28.         structure of a Transacted Web Page.  
  29.  
  30.     </BODY>
  31. </HTML>
  32.  
  33.  
  34. <% 
  35.     // The Transacted Script Commit Handler.  This function
  36.     // will be called if the transacted script commits.
  37.     // Note that in the example above, there is no way for the
  38.     // script not to commit.
  39.  
  40.     function OnTransactionCommit()
  41.     {
  42.         Response.Write ("<p><b>The Transaction just comitted</b>.");
  43.         Response.Write ("This message came from the ");
  44.         Response.Write ("OnTransactionCommit() event handler.");
  45.     }
  46.  
  47.  
  48.     // The Transacted Script Abort Handler.  This function
  49.     // will be called if the script transacted aborts
  50.     // Note that in the example above, there is no way for the
  51.     // script not to commit.
  52.  
  53.     function OnTransactionAbort()
  54.     {
  55.         Response.Write ("<p><b>The Transaction just aborted</b>."); 
  56.         Response.Write ("This message came from the ");
  57.         Response.Write ("OnTransactionAbort() event handler.");
  58.     }
  59. %>